package beans.autowire;

import beans.factory.User;
import cn.stimd.spring.beans.factory.annotation.Autowired;

/**
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
public class UserController {
    @Autowired
    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public User getUser(){
        return this.userService.getUser();
    }
}
